package com.student.client.mapper;

import com.student.client.entity.StudentHealthy;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentHealthyMapper {
    @Select("select * from studentHealthy_info")
    public List<StudentHealthy> findAllHealthy();

    @Insert("INSERT INTO studentHealthy_info(height,weight,studentHealthy_date)" +
            "values(#{height},#{weight},#{date})" )
    public int addStudentHealthy(StudentHealthy studentHealthy);
}
